﻿using DVM.DB.Model;

namespace DVM.DB.DataQuery
{
    public class DBData
    {
        public static List<Product> GetProductQuery()
        {
            var productQuery = new List<Product>()
            {
              new Product () { ProductId = 1, ImageID=1, ProductTypeId=1,OtherId =999 },
              new Product () { ProductId = 2, ImageID=2, ProductTypeId=2,OtherId =998 },
             // new Product () { ProductId = 3, ImageID=3, ProductTypeId=3 ,OtherId =997}
            };
            return productQuery;
        }

        public static List<ProductType> GetProductTypeQuery()
        {
            var productTypeQuery = new List<ProductType>(){
                  new ProductType () {  Id =1, ProductTypeName="产品类型1" },
                  new ProductType () { Id = 2, ProductTypeName="产品类型2" },
                  new ProductType () { Id = 3, ProductTypeName="产品类型3" }
           };
            return productTypeQuery;
        }

        public static List<Image> GetImageQuery()
        {
            var imageQuery = new List<Image>(){
                  new Image () { Id = 1, ImageUrl = "图片地址1" },
                  new Image () { Id = 2, ImageUrl = "图片地址2" },
                  new Image () { Id = 3, ImageUrl = "图片地址3" }
             };
            return imageQuery;
        }

    }
}
